@extends('layouts.mobile')

@section('title', '我的')

@section('content')
    <div class="userview">
        <div class="header">
            <img src="{{avatar(Auth::id())}}" class="avatar">
            <div class="info">
                <strong>{{$username}}</strong>
            </div>
        </div>

        <div class="order-actions">
            <div class="tablerow" data-link="{{url('mobile/trade/bought')}}">
                <div class="textlabel">我的订单</div>
                <div class="detaillable">全部订单</div>
                <div class="arrow"></div>
            </div>

            <ul class="actions">
                <li data-link="{{url('mobile/trade/bought?tradeStatus=1')}}">
                    <img src="{{asset('images/icons/wait-pay.png')}}" class="ico">
                    <div class="txt">待付款</div>
                </li>
                <li data-link="{{url('mobile/trade/bought?tradeStatus=2')}}">
                    <img src="{{asset('images/icons/wait-send.png')}}" class="ico">
                    <div class="txt">待发货</div>
                </li>
                <li data-link="{{url('mobile/trade/bought?tradeStatus=3')}}">
                    <img src="{{asset('images/icons/wait-delivery.png')}}" class="ico">
                    <div class="txt">待收货</div>
                </li>
                <li data-link="{{url('mobile/trade/bought?tradeStatus=4')}}">
                    <img src="{{asset('images/icons/wait-rate.png')}}" class="ico">
                    <div class="txt">待评价</div>
                </li>
                <li data-link="{{url('mobile/trade/bought?tradeStatus=5')}}">
                    <img src="{{asset('images/icons/refund.png')}}" class="ico">
                    <div class="txt">退款/售后</div>
                </li>
            </ul>
        </div>

        <div class="metas">
            <div class="tablerow" data-link="{{url('mobile/security')}}">
                <img src="{{asset('images/icons/safe.png')}}" class="icon">
                <div class="textlabel">账号安全</div>
                <div class="arrow"></div>
            </div>
            <div class="tablerow" data-link="{{url('mobile/address')}}">
                <img src="{{asset('images/icons/address_book.png')}}" class="icon">
                <div class="textlabel">收货地址</div>
                <div class="arrow"></div>
            </div>
            <div class="tablerow" data-link="{{url('mobile/collect')}}">
                <img src="{{asset('images/icons/favor.png')}}" class="icon">
                <div class="textlabel">我的收藏</div>
                <div class="arrow"></div>
            </div>
            <div class="tablerow" data-link="{{url('mobile/pages/detail/33.html')}}">
                <img src="{{asset('images/icons/info.png')}}" class="icon">
                <div class="textlabel">关于粗耕</div>
                <div class="arrow"></div>
            </div>
            <div class="tablerow" data-link="{{url('mobile/feedback')}}">
                <img src="{{asset('images/icons/write.png')}}" class="icon">
                <div class="textlabel">帮助与反馈</div>
                <div class="arrow"></div>
            </div>
        </div>
        <div class="section-title">猜你喜欢</div>
        @include('mobile.item.itemgridlist')
    </div>
    @include('mobile.tabbar', ['tab' => 'user'])
@stop
